<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<script src="jquery.js"></script>
<body>
<div id="box"></div>
<script>
  function getUrlParam(name) {
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)') //构造一个含有目标参数的正则表达式对象
    var r = window.location.search.substr(1).match(reg)  //匹配目标参数
    if (r != null) return unescape(r[ 2 ])
    return null //返回参数值
  }

  var id = getUrlParam('id')
  var tabNameSuffix = getUrlParam('tabNameSuffix')
  var img = []
  $.post('/lawyarCase/system/caseFile/getCaseFileList', {
    caseId: id,
    tabNameSuffix,
    tabNameSuffix
  }, function(result) {
    for (let i = 0; i < result.data.length; i++) {
      img = img.concat(JSON.parse(result.data[ i ].imgJson))
    }
    for (let i = 0; i < img.length; i++) {
      $('#box').append('<img src="/lawyarCaseFiles/' + img[ i ] + '" width="100%">')
    }

  })
</script>
</body>
</html>
